package com.bdsy.common.tag;

import org.sitemesh.SiteMeshContext;
import org.sitemesh.content.ContentProperty;
import org.sitemesh.content.tagrules.TagRuleBundle;
import org.sitemesh.content.tagrules.html.ExportTagToContentRule;
import org.sitemesh.tagprocessor.State;

/**
 * ClassName:CssTagRuleBundle
 * Description: TODO 添加描述.
 * @author   Administrator
 * @version  
 * @since    JDK 1.8
 */
public class CssTagRuleBundle implements TagRuleBundle {

    @Override
    public void install(State defaultState, ContentProperty contentProperty,
	    SiteMeshContext siteMeshContext) {
	defaultState.addRule("customCss", new ExportTagToContentRule(siteMeshContext, contentProperty.getChild("customCss"), false));
	
    }

    @Override
    public void cleanUp(State defaultState, ContentProperty contentProperty,
	    SiteMeshContext siteMeshContext) {
	
	
    }

}

